package com.hackintosh.builder.pattern;

/**
 * @description：包工头
 * @author：twislyn
 * @date：Created in 2021/05/09
 * @modified By：
 * @version: 1.0
 */
public class ProjectManager {
    private Decorator builder;

    public ProjectManager(Decorator decorator) {
        this.builder = decorator;
    }

    public Parlour decorate(){
        builder.buildWall();
        builder.buildTV();
        builder.buildSofa();
        return builder.getParlour();
    }
}
